﻿
        function showMap()
        {
            window.open('GoogleMap.aspx', 'Popup', 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=0,width=780,height=520,left = 290,top = 162');
        }

        //Integer Only
        function onlyInteger(parameters) {
            if ((window.event.keyCode < 48) || (window.event.keyCode > 57)) {
                return false;
            }
        }

        // A-Z,a-z and Thai lanaguage
        function onlyCharacter(parameters) {
            if (((window.event.keyCode > 64) && (window.event.keyCode < 91)) || ((window.event.keyCode > 96) && (window.event.keyCode < 123)) || (window.event.keyCode >= 161)) {
                return true;
            } else {
                return false;
            }
        }

        //English lanaguage and 0-9 and '_'
        function onlyEngCharacter(parameters) {
            if (((window.event.keyCode > 64) && (window.event.keyCode < 91)) || ((window.event.keyCode > 96) && (window.event.keyCode < 123)) || ((window.event.keyCode > 47) && (window.event.keyCode < 58)) || (window.event.keyCode == 95)) {
                return true;
            } else {
                return false;
            }
        }


        // A-Z,a-z,0-9 and Thai lanaguage
        function onlyCarRegis(parameters) {
            if (((window.event.keyCode > 64) && (window.event.keyCode < 91)) || ((window.event.keyCode > 96) && (window.event.keyCode < 123)) || ((window.event.keyCode > 47) && (window.event.keyCode < 58)) || (window.event.keyCode >= 161) || (window.event.keyCode == 45) || (window.event.keyCode == 32)) {
                return true;
            } else {
                return false;
            }
        }
        
        //Password A-Z,a-z,0-9
        function onlyPassword(parameters) {
            if (((window.event.keyCode > 64) && (window.event.keyCode < 91)) || ((window.event.keyCode > 96) && (window.event.keyCode < 123)) || ((window.event.keyCode > 34) && (window.event.keyCode < 58)) || (window.event.keyCode == 95)) {
                return true;
            } else {
                return false;
            }
        }

        //NoPush
        function NoPush(parameters) {
           return false;
        }